<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Transitional//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd'>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 
	<title>商家管理平台</title> 
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<link rel="stylesheet" href="lib/iconfont.css">
	<link rel="stylesheet" href="lib/dute.ux.css">
	<link rel="stylesheet" href="lib/def.css">
	
	<script>window.duteTag="lz";</script>
	
	<script src="lib/dute-1.0.js"></script>
	<script src="lib/jquery/jquery-1.9.1.min.js"></script>
		
	<script src="lib/md5.min.js"></script>
	<script src="lib/dute.ux.js"></script>
	<script lib="true" src="lib/fastclick.js"></script>
	<script lib="true" src="lib/app.config.js"></script>
	<script lib="true" src="lib/dute.web.js"></script>
	<script src="lib/def.js"></script>
	<script type="text/javascript" src="/manage/js/lazy3q.ui.js"></script>
	<script lib="true" src="lib/echarts/echarts.min.js"></script>
	<script lib="true" src="lib/echarts/map/china.js"></script>
	<script lib="true" src="lib/echarts/theme/shine.js"></script>
	<script lib="true" src="lib/echarts/theme/dark.js"></script>
	<template type="text/component" lib="true" src="lib/echarts/echarts.compo.htm"></template>
	
	<script>
	Page({
	  /**
	   * 页面的初始数据
	   */
	  data: {    
		action:"/manage/welcome.do"
	  },
	
	  /**
	   * 生命周期函数--监听页面加载
	   */
	  onLoad: function(options) {
		  if(this.data.action){
			  var $this = this;
			  ux.request(this.data.action,options,function(protocol){
					$this.setData(protocol.data);
			  });
		  }    
	  },
	  
	  /**
	   * 生命周期函数--监听页面初次渲染完成
	   */
	  onReady: function() {
	
	  },
	
	  /**
	   * 生命周期函数--监听页面显示
	   */
	  onShow: function() {
	
	  },
	
	  /**
	   * 生命周期函数--监听页面隐藏
	   */
	  onHide: function() {
	
	  },
	
	  /**
	   * 生命周期函数--监听页面卸载
	   */
	  onUnload: function() {
	
	  }
	  
	})
	</script>

	<style id="pageStyle"></style>
	
</head>
<body>	
	<div style="margin-left:5px;margin-right:5px;">
		<div style="height:47px;" class="ux-flex-e">
			<h1 style="margin-left:15px;margin-bottom:8px;margin-top:5px;float:left;">今天</h1>
			<div style="height:22px;">
				<text style="margin-left:15px;font-size:14px;">{{today}}，欢迎您回到商户管理控制台。</text>
			</div>
		</div>
		<div style="margin:10px;padding:10px;background-color:#fffb8f;border-color:#ffec3d;border-width:1px;border-style:solid;">
			<text>累计收益：{{brandAccount.lSmoney+0}}元，累计提现：{{brandAccount.lTmoney+0}}元，当前可提现额：{{brandAccount.money+0}}元</text>
			<button onclick='top.$.open("/manage/finance/branddrawal.edit.html?edittype=apply",null,window)' type="button" class="ux-btn ux-blue-bk" style="margin-left:30px;height:34px;line-height:34px;">申请提现</button>
		</div>
		<div class="row" style="width:100%;height:101px;">
			<div class="col-3" style="padding:10px;">
				<div class="row" style="width:100%;height:100%;box-shadow: 0px 0px 3px rgba(0,0,0,0.05);">
					<div class="col-4 ux-flex-e ux-flex-c" style="background-color:#1890ff;">
						<icon class="iconfont icon-cart" style="color:#ffffff;font-size:48px;"></icon>
					</div>
					<div class="col-8" style="background-color:#ffffff;">
						<h1 style="margin:0px;font-size:16px;line-height:32px;margin-top:5px;margin-left:10px;">今日订单数</h1>
						<h1 style="margin:0px;font-size:16px;line-height:32px;margin-left:10px;">{{counts0+0}}</h1>
					</div>
				</div>
			</div>
			<div class="col-3" style="padding:10px;">
				<div class="row" style="width:100%;height:100%;box-shadow: 0px 0px 3px rgba(0,0,0,0.05);">
					<div class="col-4 ux-flex-e ux-flex-c" style="background-color:#73d13d;">
						<icon class="iconfont icon-send" style="color:#ffffff;font-size:48px;"></icon>
					</div>
					<div class="col-8" style="background-color:#ffffff;">
						<h1 style="margin:0px;font-size:16px;line-height:32px;margin-top:5px;margin-left:10px;">今日订单额</h1>
						<h1 style="margin:0px;font-size:16px;line-height:32px;margin-left:10px;">{{counts1+0}}</h1>
					</div>
				</div>
			</div>
			<div class="col-3" style="padding:10px;">
				<div class="row" style="width:100%;height:100%;box-shadow: 0px 0px 3px rgba(0,0,0,0.05);">
					<div class="col-4 ux-flex-e ux-flex-c" style="background-color:#FF5722;">
						<icon class="iconfont icon-friendadd" style="color:#ffffff;font-size:48px;"></icon>
					</div>
					<div class="col-8" style="background-color:#ffffff;">
						<h1 style="margin:0px;font-size:16px;line-height:32px;margin-top:5px;margin-left:10px;">新增会员数</h1>
						<h1 style="margin:0px;font-size:16px;line-height:32px;margin-left:10px;">{{counts2+0}}</h1>
					</div>
				</div>
			</div>
			<div class="col-3" style="padding:10px;">
				<div class="row" style="width:100%;height:100%;box-shadow: 0px 0px 3px rgba(0,0,0,0.05);">
					<div class="col-4 ux-flex-e ux-flex-c" style="background-color:#FFB800;">
						<icon class="iconfont icon-deliver" style="color:#ffffff;font-size:48px;"></icon>
					</div>
					<div class="col-8" style="background-color:#ffffff;">
						<h1 style="margin:0px;font-size:16px;line-height:32px;margin-top:5px;margin-left:10px;">当前待配送</h1>
						<h1 style="margin:0px;font-size:16px;line-height:32px;margin-left:10px;">{{counts3+0}}</h1>
					</div>
				</div>
			</div>
			
			<div class="col-3" style="padding:10px;">
				<div class="row" style="width:100%;height:100%;box-shadow: 0px 0px 3px rgba(0,0,0,0.05);">
					<div class="col-4 ux-flex-e ux-flex-c" style="background-color:#1890ff;">
						<icon class="iconfont icon-deliver" style="color:#ffffff;font-size:48px;"></icon>
					</div>
					<div class="col-8" style="background-color:#ffffff;">
						<h1 style="margin:0px;font-size:16px;line-height:32px;margin-top:5px;margin-left:10px;">今日充赠订单</h1>
						<h1 style="margin:0px;font-size:16px;line-height:32px;margin-left:10px;">{{counts4+0}}</h1>
					</div>
				</div>
			</div>
			
			<div class="col-3" style="padding:10px;">
				<div class="row" style="width:100%;height:100%;box-shadow: 0px 0px 3px rgba(0,0,0,0.05);">
					<div class="col-4 ux-flex-e ux-flex-c" style="background-color:#73d13d;">
						<icon class="iconfont icon-deliver" style="color:#ffffff;font-size:48px;"></icon>
					</div>
					<div class="col-8" style="background-color:#ffffff;">
						<h1 style="margin:0px;font-size:16px;line-height:32px;margin-top:5px;margin-left:10px;">今日售后订单</h1>
						<h1 style="margin:0px;font-size:16px;line-height:32px;margin-left:10px;">{{counts5+0}}</h1>
					</div>
				</div>
			</div>
			
			<div class="col-3" style="padding:10px;">
				<div class="row" style="width:100%;height:100%;box-shadow: 0px 0px 3px rgba(0,0,0,0.05);">
					<div class="col-4 ux-flex-e ux-flex-c" style="background-color:#FF5722;">
						<icon class="iconfont icon-deliver" style="color:#ffffff;font-size:48px;"></icon>
					</div>
					<div class="col-8" style="background-color:#ffffff;">
						<h1 style="margin:0px;font-size:16px;line-height:32px;margin-top:5px;margin-left:10px;">今日新增代理</h1>
						<h1 style="margin:0px;font-size:16px;line-height:32px;margin-left:10px;">{{counts6+0}}</h1>
					</div>
				</div>
			</div>
			
			<div class="col-3" style="padding:10px;">
				<div class="row" style="width:100%;height:100%;box-shadow: 0px 0px 3px rgba(0,0,0,0.05);">
					<div class="col-4 ux-flex-e ux-flex-c" style="background-color:#FFB800;">
						<icon class="iconfont icon-deliver" style="color:#ffffff;font-size:48px;"></icon>
					</div>
					<div class="col-8" style="background-color:#ffffff;">
						<h1 style="margin:0px;font-size:16px;line-height:32px;margin-top:5px;margin-left:10px;">今日新增合伙人</h1>
						<h1 style="margin:0px;font-size:16px;line-height:32px;margin-left:10px;">{{counts7+0}}</h1>
					</div>
				</div>
			</div>
		</div>
		<div class="row" style="width:100%;">
			<div class="col-9">
				<div class="ux-flex" style="box-shadow: 0px 0px 3px rgba(0,0,0,0.05);flex-flow:column;background-color:#ffffff;margin:10px;height:250px;margin-bottom:20px;">
					<div style="min-width:100%;height:39px;" class="ux-flex-e">
						<text style="margin-left:15px;">::::&nbsp;&nbsp;常用功能&nbsp;&nbsp;::::</text>
					</div>
					<div class="ux-no-resize" style="min-width:100%;flex:1;height:auto;">
						<div class="row" style="margin-left:5px;margin-right:5px;">
							<div class="col-4" style="height:auto;">
								<a href="javascript:top.navigateTo({url:'/manage/products/productorder.html',title:'余额充值订单'});" style="background-color:#FAFAFA;margin:10px;height:60px;margin-top:0px;margin-left:5px;margin-right:5px;" class="ux-flex-e">
									<icon class="iconfont icon-weibiaoti11" style="font-size:22px;margin-left:20px;"></icon>
									<text style="margin-left:15px;">余额充值订单</text>
								</a>
							</div>
							<div class="col-4" style="height:auto;">
								<a href="javascript:top.navigateTo({url:'/manage/setting/setting.html',title:'业务参数'});" style="background-color:#FAFAFA;margin:10px;height:60px;margin-top:0px;margin-left:5px;margin-right:5px;" class="ux-flex-e">
									<icon class="iconfont icon-jihua" style="font-size:22px;margin-left:20px;"></icon>
									<text style="margin-left:15px;">业务参数</text>
								</a>
							</div>
							<div class="col-4" style="height:auto;">
								<a href="javascript:top.navigateTo({url:'/manage/setting/headline.html',title:'品牌头条'});" style="background-color:#FAFAFA;margin:10px;height:60px;margin-top:0px;margin-left:5px;margin-right:5px;" class="ux-flex-e">
									<icon class="iconfont icon-tupian2" style="font-size:22px;margin-left:20px;"></icon>
									<text style="margin-left:15px;">品牌头条</text>
								</a>
							</div>
							<div class="col-4" style="height:auto;">
								<a href="javascript:top.navigateTo({url:'/manage/goods/commodity.html',title:'商品信息'});" style="background-color:#FAFAFA;margin:10px;height:60px;margin-top:0px;margin-left:5px;margin-right:5px;" class="ux-flex-e">
									<icon class="iconfont icon-lifangtilitiduomiantifangkuai" style="font-size:22px;margin-left:20px;"></icon>
									<text style="margin-left:15px;">商品信息</text>
								</a>
							</div>
							<div class="col-4" style="height:auto;">
								<a href="javascript:top.navigateTo({url:'/manage/goods/higher.html',title:'大咖说'});" style="background-color:#FAFAFA;margin:10px;height:60px;margin-top:0px;margin-left:5px;margin-right:5px;" class="ux-flex-e">
									<icon class="iconfont icon-baimao" style="font-size:22px;margin-left:20px;"></icon>
									<text style="margin-left:15px;">大咖说</text>
								</a>
							</div>
							<div class="col-4" style="height:auto;">
								<a href="javascript:top.navigateTo({url:'/manage/goods/directorder.html',title:'商品订单'});" style="background-color:#FAFAFA;margin:10px;height:60px;margin-top:0px;margin-left:5px;margin-right:5px;" class="ux-flex-e">
									<icon class="iconfont icon-weibiaoti11" style="font-size:22px;margin-left:20px;"></icon>
									<text style="margin-left:15px;">商品订单</text>
								</a>
							</div>
							<div class="col-4" style="height:auto;">
								<a href="javascript:top.navigateTo({url:'/manage/agents/agencycardorder.html',title:'代理卡订单'});" style="background-color:#FAFAFA;margin:10px;height:60px;margin-top:0px;margin-left:5px;margin-right:5px;" class="ux-flex-e">
									<icon class="iconfont icon-liebiao1" style="font-size:22px;margin-left:20px;"></icon>
									<text style="margin-left:15px;">代理卡订单</text>
								</a>
							</div>
							<div class="col-4" style="height:auto;">
								<a href="javascript:top.navigateTo({url:'/manage/delivery/distributor.html',title:'配送商信息'});" style="background-color:#FAFAFA;margin:10px;height:60px;margin-top:0px;margin-left:5px;margin-right:5px;" class="ux-flex-e">
									<icon class="iconfont icon-huoche2" style="font-size:22px;margin-left:20px;"></icon>
									<text style="margin-left:15px;">配送商信息</text>
								</a>
							</div>
							<div class="col-4" style="height:auto;">
								<a href="javascript:top.navigateTo({url:'/manage/agents/agent.html',title:'代理商'});" style="background-color:#FAFAFA;margin:10px;height:60px;margin-top:0px;margin-left:5px;margin-right:5px;" class="ux-flex-e">
									<icon class="iconfont icon-friend" style="font-size:22px;margin-left:20px;"></icon>
									<text style="margin-left:15px;">代理商</text>
								</a>
							</div>
						</div>
					</div>
				</div>
				<div class="ux-flex" style="box-shadow: 0px 0px 3px rgba(0,0,0,0.05);flex-flow:column;background-color:#ffffff;margin:10px;height:auto;margin-bottom:20px;">
					<div style="min-width:100%;height:39px;" class="ux-flex-e">
						<text style="margin-left:15px;">::::&nbsp;&nbsp;数据统计&nbsp;&nbsp;::::</text>
					</div>
					<div class="ux-no-resize" style="min-width:100%;flex:1;height:auto;">
						<div class="row" style="margin-left:5px;margin-right:5px;">
								
								<div class="col-4" style="height:auto;">
									<div style="background-color:#FAFAFA;margin:10px;height:60px;margin-top:0px;margin-left:5px;margin-right:5px;" class="ux-flex-e">
										<icon class="iconfont icon-xiaoshou" style="font-size:22px;margin-left:20px;"></icon>
										<text style="margin-left:15px;">充赠订单数&nbsp;&nbsp;&nbsp;&nbsp;{{chongzcount}}</text>
									</div>
								</div>
								<div class="col-4" style="height:auto;">
									<div style="background-color:#FAFAFA;margin:10px;height:60px;margin-top:0px;margin-left:5px;margin-right:5px;" class="ux-flex-e">
										<icon class="iconfont icon-xiaoshou" style="font-size:22px;margin-left:20px;"></icon>
										<text style="margin-left:15px;">代理订单数&nbsp;&nbsp;&nbsp;&nbsp;{{dlordercount}}</text>
									</div>
								</div>
								<div class="col-4" style="height:auto;">
									<div style="background-color:#FAFAFA;margin:10px;height:60px;margin-top:0px;margin-left:5px;margin-right:5px;" class="ux-flex-e">
										<icon class="iconfont icon-xiaoshou" style="font-size:22px;margin-left:20px;"></icon>
										<text style="margin-left:15px;">合伙人订单数&nbsp;&nbsp;&nbsp;&nbsp;{{hhrcount}}</text>
									</div>
								</div>
								<div class="col-4" style="height:auto;">
									<div style="background-color:#FAFAFA;margin:10px;height:60px;margin-top:0px;margin-left:5px;margin-right:5px;" class="ux-flex-e">
										<icon class="iconfont icon-xiaoshou" style="font-size:22px;margin-left:20px;"></icon>
										<text style="margin-left:15px;">当前会员总数&nbsp;&nbsp;&nbsp;&nbsp;{{membercount}}</text>
									</div>
								</div>
								<div class="col-4" style="height:auto;">
									<div style="background-color:#FAFAFA;margin:10px;height:60px;margin-top:0px;margin-left:5px;margin-right:5px;" class="ux-flex-e">
										<icon class="iconfont icon-xiaoshou" style="font-size:22px;margin-left:20px;"></icon>
										<text style="margin-left:15px;">当前代理数量&nbsp;&nbsp;&nbsp;&nbsp;{{dailicount}}</text>
									</div>
								</div>
								
								<div class="col-4" style="height:auto;">
									<div style="background-color:#FAFAFA;margin:10px;height:60px;margin-top:0px;margin-left:5px;margin-right:5px;" class="ux-flex-e">
										<icon class="iconfont icon-xiaoshou" style="font-size:22px;margin-left:20px;"></icon>
										<text style="margin-left:15px;">当前合伙人数&nbsp;&nbsp;&nbsp;&nbsp;{{hhrcount}}</text>
									</div>
								</div>
						</div>
					</div>
				</div>
				<div class="ux-flex" style="box-shadow: 0px 0px 3px rgba(0,0,0,0.05);flex-flow:column;background-color:#ffffff;margin:10px;height:250px;margin-bottom:20px;">
					<div style="min-width:100%;height:39px;" class="ux-flex-e">
						<text style="margin-left:15px;">::::&nbsp;&nbsp;最近订单概述&nbsp;&nbsp;::::</text>
					</div>
					<div class="ux-no-resize" style="min-width:100%;flex:1;height:auto;">
						<echarts style="height:200px;display:block;">{
									    color: ['#3398DB'],
									    tooltip : {
									        trigger: 'axis',
									        axisPointer : {
									            type : 'shadow'
									        }
									    },
									    grid: {
									    	top: '10%',
									        left: '3%',
									        right: '4%',
									        bottom: '3%',
									        containLabel: true
									    },
									    xAxis : [
									        {
									            type : 'category',
									            data : [{{homebars.category}}],
									            axisTick: {
									                alignWithLabel: true
									            }
									        }
									    ],
									    yAxis : [
									        {
									            type : 'value'
									        }
									    ],
									    series : [
									        {
									            name:'{{homebars.title}}',
									            type:'bar',
									            barWidth: '60%',
									            data:[{{homebars.values}}]
									        }
									    ]
									}</echarts>
					</div>
				</div>
			</div>
			<div class="col-3">
				<div class="ux-flex" style="box-shadow: 0px 0px 3px rgba(0,0,0,0.05);flex-flow:column;background-color:#ffffff;margin:10px;padding:0px 10px;height:250px;margin-bottom:20px;">
					<div style="min-width:100%;height:39px;" class="ux-flex-e">
						<text style="margin-left:0px;font-size:14px;">::::&nbsp;&nbsp;最新订单&nbsp;&nbsp;::::</text>
					</div>
					<div class="ux-no-resize" style="min-width:100%;flex:1;height:auto;padding:10px 0px;padding-top:0px;">
						<table class="table" width="100%" border="0" cellspacing="0" cellpadding="0" style="table-layout: fixed;">
							<tbody style="">
								<tr style="height:32px;">
									<td style="width:25%;text-align:center;">
										<text>订单号</text>
									</td>
									<td style="width:25%;text-align:center;">
										<text>订单类型</text>
									</td>
									<td style="width:25%;text-align:center;">
										<text>总金额</text>
									</td>
									<td style="width:25%;text-align:center;">
										<text>状态</text>
									</td>
								</tr>
								<tr lz:for="{{orders}}" style="height:32px;">
									<td style="text-align:center;overflow:hidden;white-space:nowrap; text-overflow:ellipsis;">{{item.no$ || item.no}}</td>
									<td style="text-align:center;overflow:hidden;white-space:nowrap; text-overflow:ellipsis;">{{item.orderType$ || item.orderType}}</td>
									<td style="text-align:center;overflow:hidden;white-space:nowrap; text-overflow:ellipsis;">{{item.totalSum$ || item.totalSum}}</td>
									<td style="text-align:center;overflow:hidden;white-space:nowrap; text-overflow:ellipsis;">{{item.status$ || item.status}}</td>
								</tr>
							</tbody>
						</table>
					</div>
				</div>
				<div class="ux-flex" style="box-shadow: 0px 0px 3px rgba(0,0,0,0.05);flex-flow:column;background-color:#ffffff;margin:10px;padding:0px 10px;height:250px;margin-bottom:20px;">
					<div style="min-width:100%;height:39px;" class="ux-flex-e">
						<text style="margin-left:0px;font-size:14px;">::::&nbsp;&nbsp;代理订单&nbsp;&nbsp;::::</text>
					</div>
					<div class="ux-no-resize" style="min-width:100%;flex:1;height:auto;padding:10px 0px;padding-top:0px;">
						<table class="table" width="100%" border="0" cellspacing="0" cellpadding="0" style="table-layout: fixed;">
							<tbody style="">
								<tr style="height:32px;">
									<td style="width:25%;text-align:center;">
										<text>订单编号</text>
									</td>
									<td style="width:25%;text-align:center;">
										<text>用户</text>
									</td>
									<td style="width:25%;text-align:center;">
										<text>支付金额</text>
									</td>
									<td style="width:25%;text-align:center;">
										<text>支付状态</text>
									</td>
								</tr>
								<tr lz:for="{{agents}}" style="height:32px;">
									<td style="text-align:center;overflow:hidden;white-space:nowrap; text-overflow:ellipsis;">{{item.orderNumber$ || item.orderNumber}}</td>
									<td style="text-align:center;overflow:hidden;white-space:nowrap; text-overflow:ellipsis;">{{item.member$ || item.member}}</td>
									<td style="text-align:center;overflow:hidden;white-space:nowrap; text-overflow:ellipsis;">{{item.payMoney$ || item.payMoney}}</td>
									<td style="text-align:center;overflow:hidden;white-space:nowrap; text-overflow:ellipsis;">{{item.payStatus$ || item.payStatus}}</td>
								</tr>
							</tbody>
						</table>
					</div>
				</div>
			</div>
		</div>
	</div>
</body>
</html>